#ifndef _RECTANGLE_H_
#define _RECTANGLE_H_

#include <iostream>
#include <string>
#include <sstream>
using namespace std;


#define MAX_LEN	100

class Rectangle
{
    public:
	Rectangle(float width, float height);

	float getArea() const;

	float getPerimeter() const;

	bool setSideLen(float width, float height);

	// for debug
	float getRoundup(float len) const;

   private:
	float m_width, m_height;
	bool isValid(float len) const;
	bool moreDecimal(float len) const;
	float truncate(float len);
};

#endif
